package com.zengqingfa.springboot.es.service;

import java.util.List;
import java.util.Map;

/**
 * @fileName: ContentService
 * @author:
 * @date: 2020-7-4 11:45
 * @description:
 */
public interface ContentService {

    Boolean parseContent(String keywords) throws Exception;


    /**
     * 分页查询
     * @param keywords
     * @param pageNo
     * @param pageSize
     * @return
     */
    List<Map<String,Object>> searchPage(String keywords,Integer pageNo,Integer pageSize)  throws Exception;

    /**
     * 高亮分页查询
     * @param keywords
     * @param pageNo
     * @param pageSize
     * @return
     */
    List<Map<String, Object>> searchPageHightLight(String keywords, Integer pageNo, Integer pageSize) throws  Exception;
}
